package stack_analysis

import "fmt"

type stack struct {
	name *string
	ch   chan struct{}
}

//go build -gcflags "-l -m -m" stack_analysis.go
func analysis() {
	n := "stack_analysis"
	s := New(&n)
	fmt.Println(*s.name, s.ch)
}

func New(n *string) *stack {
	return &stack{name: n, ch: make(chan struct{})}
}
